import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Home from '@/components/Home'
import Site from '@/components/Site'
import Barcode from '@/components/Barcode'
import Package from '@/components/Package'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login,
      meta: {
        title: '用户登录'
       }
    },
    {
      path: '/home',
      name: 'Home',
      component: Home,
      meta: {
        title: '首页'
       }
    },
    {
      path: '/site',
      name: 'Site',
      component: Site,
      meta: {
        title: '配置站点'
       }
    },
    {
      path: '/barcode',
      name: 'Barcode',
      component: Barcode,
      meta: {
        title: '配置参数'
       }
    },
    {
      path: '/package',
      name: 'Package',
      component: Package,
      meta: {
        title: '箱号入板'
      }
    }
  ]
})
